package com.xuelangyun.service;

import com.xuelangyun.dao.TypeDao;

/** @Version 1.0 @Author:xinyan @Date:2022/4/15 @Content: */
public class TypeService {
  // bean对象
  private TypeDao typeDao;

  // 字符串类型
  private String hosts;

  public String getHosts() {
    return hosts;
  }
  // 整型
  private Integer port;

  public Integer getPort() {
    return port;
  }

  public void setPort(Integer port) {
    this.port = port;
  }

  public void setHosts(String hosts) {
    this.hosts = hosts;
  }

  public TypeDao getTypeDao() {
    return typeDao;
  }

  public void setTypeDao(TypeDao typeDao) {
    this.typeDao = typeDao;
  }
  /** set方法注入 需要给属性字段提供set方法 */
  public void test() {

    System.out.println("TypeService.....");
    typeDao.test();
    System.out.println("Host:" + hosts + ",Port:" + port);
  }
}
